package com.bdqn.blog.service.impl;

import com.bdqn.blog.entity.SongList;
import com.bdqn.blog.mapper.SongListMapper;
import com.bdqn.blog.service.SongListService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 歌单 服务实现类
 * </p>
 *
 * @author 阿桐幕
 * @since 2020-10-29
 */
@Service
public class SongListServiceImpl extends ServiceImpl<SongListMapper, SongList> implements SongListService {



    @Resource
    private SongListMapper songListMapper;

    /**
     * 按类型查询 各类型歌单
     *
     * @param style
     */
    @Override
    public List<SongList> fingAllOfStyle(String style) {
        return songListMapper.fingAllOfStyle(style);
    }

    /**
     * 按类型查询 各类型歌单
     */
    @Override
    public List<SongList> fingAllByStyle() {
        return songListMapper.fingAllByStyle();
    }
    /**
     * 查询全部 模糊查询
     *
     * @param title
     */
    @Override
    public List<SongList> fingAllBytitle(String title) {
        return songListMapper.fingAllBytitle(title);
    }
}
